import { createRouter, createWebHistory } from 'vue-router'
import Login from '@/views/DQJ/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // 董起嘉
    {
      path: '/',
      name: 'Login',
      component: Login,
      meta: {
        title: '登录'
      },
    },
    {
      path: "/Forgot_password",
      name: "Forgot_password",//忘记密码,进行验证
      component: () => import('@/views/DQJ/Forgot_password.vue'),
      meta: {
        title: '忘记密码'
      },
    },
    {
      path: "/Updata_password",
      name: "Updata_password",//验证通过，修改密码
      component: () => import('@/views/DQJ/Updata_password.vue'),
      meta: {
        title: '修改密码'
      },
    },
    //徐晓坤........................
    {
      path: '/xxk',
      name: '',
      meta: {
        title: '首页'
      },
      component: () => import('@/views/XXK/Index.vue'),
      children: [
        {
          path: 'xxk_home',
          name: 'xxk_home',
          component: () => import('@/views/XXK/Xxk_home.vue'),
          meta: {
            title: '概况预览'
          }
        },
        {
          path: 'xxk_order',
          name: 'xxk_order',
          component: () => import('@/views/XXK/Xxk_order.vue'),
          meta:{
            title:'订单审核>全部订单'
          }
        },
        {
          path: 'Under_review',
          name: 'Under_review',
          component: () => import('@/views/XXK/Under_review.vue'),
          meta:{
            title:'订单审核>审核中'
          }
        },
        {
          path: 'Self_bill',
          name: 'Self_bill',
          component: () => import('@/views/XXK/Self_bill.vue'),
          meta:{
            title:'订单审核>代发货'
          }
        },
        {
          path: 'Shipped',
          name: 'Shipped',
          component: () => import('@/views/XXK/Shipped.vue'),
          meta:{
            title:'订单审核>已出库'
          }
        },
        {
          path: 'Error_ticket',
          name: 'Error_ticket',
          component: () => import('@/views/XXK/Error_ticket.vue'),
          meta:{
            title:'订单审核>退单处理'
          }
        },
        {
          path: 'count',
          name: 'count',
          component: () => import('@/views/XXK/count.vue'),
          meta:{
            title:'代金卷发放>发放代金卷'
          }
        },

        // 董起嘉
        {
          path: 'user_Treemap',
          name: 'user_Treemap',
          component: () => import('@/views/DQJ/user_Treemap.vue'),
          meta:{
            title:'总体数据'
          }
        },
        {
          path: 'publish_activity',
          name: '/xxk/publish_activity',
          component: () => import('@/views/DQJ/publish_activity.vue'),
          meta:{
            title:'发布活动>发布新活动'
          }
        },
        {
          path: 'updata_activify',
          name: 'updata_activify',
          component: () => import('@/views/DQJ/updata_activify.vue'),
          meta:{
            title:'发布活动>修改活动'
          }
        },
        {
          path: 'Participants_in_the_event',
          name: 'Participants_in_the_event',
          component: () => import('@/views/DQJ/Participants_in_the_event.vue'),
          meta:{
            title:'发布活动>参与活动人员'
          }
        },
        {
          path: 'commodity_list',
          name: 'commodity_list',
          component: () => import('@/views/DQJ/commodity_list.vue'),
          meta:{
            title:'商品库存>商品列表'
          }
        },
        {
          path: 'publish_activity_list',
          name: 'publish_activity_list',
          component: () => import('@/views/DQJ/publish_activity_list.vue'),
          meta:{
            title:'发布活动>活动列表'
          }
        },
        {
          path: 'Integral_list',
          name: 'Integral_list',
          component: () => import('@/views/DQJ/Integral_list.vue'),
          meta: {
            title: '商品库存>积分列表'
          }
        },
        {
          path: 'add_commodity',
          name: 'add_commodity',
          component: () => import('@/views/DQJ/add_commodity.vue'),
          meta:{
            title:'商品库存>添加商品'
          }
        },
        {
          path: 'updata_commodity',
          name: 'updata_commodity',
          component: () => import('@/views/DQJ/updata_commodity.vue'),
          meta:{
            title:'商品库存>修改商品'
          }
        }
      ]
    }
  ]
})

export default router
